package com.foreknow.demo9Exercise7;

public class Rect extends Shape {
    private double a;
    private double b;

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public double getB() {
        return b;
    }

    public void setB(double b) {
        this.b = b;
    }

    @Override
    public double getArea(double a,double b) {
        double area = 0;
        area = a*b;
        return area;
    }

    public static void main(String[] args) {
        Shape m = new Rect();
        double area = m.getArea(5.5,8);
        System.out.println(area);
    }

}
